package bsw.wode.user.action;

import bsw.wode.action.BaseAction;
import bsw.wode.config.ActionConstant;
import bsw.wode.service.LoginService;

public class LogoutAction extends BaseAction {

	private static final long serialVersionUID = -3009601593686851704L;

	private String loginName;
	private String password;
	
	public String execute() throws Exception {
		LoginService service = new LoginService();
		
		if(service.login(loginName, password))
		{
			return ActionConstant.FAILURE;
		}
		
		return ActionConstant.SUCCESS;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	
	
}
